// 配送区域
const {DataTypes, db } = require("../db");
db.define('psCargoInfoGoods', {
id: {type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true,comment:'表自增ID'},
tenantId:{type: DataTypes.INTEGER,allowNull:false,comment:'租户ID'},
iid:{type: DataTypes.INTEGER,comment:'票号'},
invName:{type: DataTypes.STRING,comment:'票号'},
spec:{type: DataTypes.STRING(20),comment:'票号'},
calNum:{type: DataTypes.STRING(20),comment:'票号'},
    qty:{type: DataTypes.STRING(20),comment:'票号'},
    qtyUnit:{type: DataTypes.STRING(20),comment:'票号'},
    unit:{type: DataTypes.STRING(20),comment:'票号'},
    price:{type: DataTypes.STRING(20),comment:'票号'},
    priceUnit:{type: DataTypes.STRING(20),comment:'票号'},
    totalAmount:{type: DataTypes.STRING(20),comment:'票号'},
    disAmount:{type: DataTypes.STRING(20),comment:'票号'},
    amount:{type: DataTypes.STRING(20),comment:'票号'},
    remark:{type: DataTypes.STRING,comment:'票号'},
    unit1:{type: DataTypes.STRING(20),comment:'票号'},
    unit2:{type: DataTypes.STRING(20),comment:'票号'},
    specArc:{type: DataTypes.STRING(20),comment:'票号'},
    billNo:{type: DataTypes.STRING(30),comment:'票号'},
    specInt:{type: DataTypes.INTEGER,comment:'票号'},
}, {
    tableName: 'ps_cargo_info_goods',
    timestamps: false,
    comment: '配送商品明细',
});